#ifndef __EVENPROC_BASE__
#define __EVENPROC_BASE__

#include "EventTypes.h"
#include "EventRegistCenter.h"

class EvenProcBase
{
public:
    virtual ~EvenProcBase(){}

public:
    virtual bool EvenProc(EventType type, void* data) = 0;

public:
    bool registUnitEven(EvenType type, EvenProcBase* pthis)
    {
        return EventCenter::getInstance()->register(type, pthis);
    }

    bool unregister(EvenType type, EvenProcBase* pthis)
    {
        return EventCenter::getInstance()->unregister(type, pthis);
    }

};

#endif